<?php

class SampleModel extends \Medoo\Medoo {

    private $_table='websites';
    protected $db = null;
    public function __construct( )
    {
        $this->db = Yaf_Registry::get('db');
    }

    public function show(){
        $list= $this->db->select($this->_table,'*', array(
        'LIMIT'=>5
        ));
        return $list;
    }
}

?>